home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
emul
/
cp4
/
support
/
playsid3.0
/
arexx
/
preview.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1999-01-01
|
552b
|
28 lines
/* PlaySID example */
if(~show('l', 'rexxsupport.library'))then do
if(~addlib( 'rexxsupport.library', 0, -30, 0))then do
say "Could not open ARexx support library."
exit 10
end
end
parse arg name
path = "sid:music/"
address command "run SID:PlaySID"
say "Loading"
if SID_Load(path || name) then do
numtunes = SID_NumTunes()
say "Found" numtunes "tunes"
do tune = 1 to numtunes
say "Playing tune" tune
SID_SetTune(tune)
SID_Play()
Delay(5 * 50)
end
say "Stopped"
SID_Stop()
end
SID_Quit()